#ifndef __MAP_DATUMS_INCLUDED
#define __MAP_DATUMS_INCLUDED

#include <math.h>

/*--------------------------------------------------------------------------*/
typedef struct 
{
	char*	name;
	char*	ellipsoid;
	
	double	a;
	double	invf;
	
	double	dx;
	double	dy;
	double	dz;
		
} map_datum;

/*--------------------------------------------------------------------------*/
void		mapdatums_init(char* filename);
map_datum*	mapdatums_find(char* name);
void		mapdatums_done();
void		mapdatums_debug();

void		mapdatum_to_wgs84(	double Sphi, double Slam, double SH,
								double *Dphi, double *Dlam, double *DH,
								map_datum* params);

#endif